function [Index] = TwoStepEnsembleClustering(C,method_ensamble,use_parfor,verbose)
%TwoStepEnsembleClustering will perform the Blind PRNU-based Image Clustering
% described in [1]
% e = TwoStepEnsembleClustering(C,method_ensamble,use_parfor,verbose)
%
% INPUT Specification:
%
% C              : a NxN matrix where Cij = sum(Ri.*Rj). Where Ri and Rj are
%                  the zero-mean noise residual of the images i and j
%
% method_ensemble:  'WEAC-SL'|'WEAC-AL'|'WEAC-CL' for using the WEAC with respectively
%                   with the single-linkage, average-linkage or
%                   complete-linkage
%
% use_parfor    : Execute loop iterations in parallel
%
% verbose       : print some information about the execution
%
% OUTPUT Specification:
%
% Index : clustering result
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% [1] F. Marra, G. Poggi, C. Sansone, L. Verdoliva.
%     Blind PRNU-based Image Clustering for Source Identification
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright (c) 2017 Image Processing Research Group of University Federico II of Naples ('GRIP-UNINA').
% All rights reserved.
% this software should be used, reproduced and modified only for informational and nonprofit purposes.
%
% By downloading and/or using any of these files, you implicitly agree to all the
% terms of the license, as specified in the document LICENSE.txt
% (included in this package) and online at
% http://www.grip.unina.it/download/LICENSE_OPEN.txt
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Contact: francesco.marra@unina.it | Feb 2017
%          http://www.grip.unina.it
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%